Optimal. Leaf size=59 \[ \frac {(f+g x) \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right )}{g}+\frac {2 \sqrt {e} q \tan ^{-1}\left (\frac {\sqrt {d} (f+g x)}{\sqrt {e}}\right )}{\sqrt {d} g} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2483, 2448, 263, 205} \[ \frac {(f+g x) \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right )}{g}+\frac {2 \sqrt {e} q \tan ^{-1}\left (\frac {\sqrt {d} (f+g x)}{\sqrt {e}}\right )}{\sqrt {d} g} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 263
Rule 2448
Rule 2483
Rubi steps
\begin {align*} \int \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right ) \, dx &=\frac {\operatorname {Subst}\left (\int \log \left (c \left (d+\frac {e}{x^2}\right )^q\right ) \, dx,x,f+g x\right )}{g}\\ &=\frac {(f+g x) \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right )}{g}+\frac {(2 e q) \operatorname {Subst}\left (\int \frac {1}{\left (d+\frac {e}{x^2}\right ) x^2} \, dx,x,f+g x\right )}{g}\\ &=\frac {(f+g x) \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right )}{g}+\frac {(2 e q) \operatorname {Subst}\left (\int \frac {1}{e+d x^2} \, dx,x,f+g x\right )}{g}\\ &=\frac {2 \sqrt {e} q \tan ^{-1}\left (\frac {\sqrt {d} (f+g x)}{\sqrt {e}}\right )}{\sqrt {d} g}+\frac {(f+g x) \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right )}{g}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 61, normalized size = 1.03 \[ \frac {(f+g x) \log \left (c \left (d+\frac {e}{(f+g x)^2}\right )^q\right )}{g}-\frac {2 \sqrt {e} q \tan ^{-1}\left (\frac {\sqrt {e}}{\sqrt {d} (f+g x)}\right )}{\sqrt {d} g} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.85, size = 287, normalized size = 4.86 \[ \left [\frac {g q x \log \left (\frac {d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e}{g^{2} x^{2} + 2 \, f g x + f^{2}}\right ) + f q \log \left (d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e\right ) - 2 \, f q \log \left (g x + f\right ) + g x \log \relax (c) + q \sqrt {-\frac {e}{d}} \log \left (\frac {d g^{2} x^{2} + 2 \, d f g x + d f^{2} + 2 \, {\left (d g x + d f\right )} \sqrt {-\frac {e}{d}} - e}{d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e}\right )}{g}, \frac {g q x \log \left (\frac {d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e}{g^{2} x^{2} + 2 \, f g x + f^{2}}\right ) + f q \log \left (d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e\right ) - 2 \, f q \log \left (g x + f\right ) + g x \log \relax (c) + 2 \, q \sqrt {\frac {e}{d}} \arctan \left (\frac {{\left (d g x + d f\right )} \sqrt {\frac {e}{d}}}{e}\right )}{g}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.47, size = 137, normalized size = 2.32 \[ d g^{4} q {\left (\frac {f e^{\left (-1\right )} \log \left (d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e\right )}{d g^{5}} - \frac {2 \, f e^{\left (-1\right )} \log \left ({\left | g x + f \right |}\right )}{d g^{5}} + \frac {2 \, \arctan \left (\frac {{\left (d g x + d f\right )} e^{\left (-\frac {1}{2}\right )}}{\sqrt {d}}\right ) e^{\left (-\frac {1}{2}\right )}}{d^{\frac {3}{2}} g^{5}}\right )} e + q x \log \left (d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e\right ) - q x \log \left (g^{2} x^{2} + 2 \, f g x + f^{2}\right ) + x \log \relax (c) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.13, size = 115, normalized size = 1.95 \[ \frac {2 e q \arctan \left (\frac {2 d \,g^{2} x +2 d f g}{2 \sqrt {d e}\, g}\right )}{\sqrt {d e}\, g}-\frac {2 f q \ln \left (g x +f \right )}{g}+\frac {f q \ln \left (d \,g^{2} x^{2}+2 d f g x +d \,f^{2}+e \right )}{g}+x \ln \left (c \left (\frac {d \,g^{2} x^{2}+2 d f g x +d \,f^{2}+e}{\left (g x +f \right )^{2}}\right )^{q}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.64, size = 100, normalized size = 1.69 \[ e g q {\left (\frac {f \log \left (d g^{2} x^{2} + 2 \, d f g x + d f^{2} + e\right )}{e g^{2}} - \frac {2 \, f \log \left (g x + f\right )}{e g^{2}} + \frac {2 \, \arctan \left (\frac {d g^{2} x + d f g}{\sqrt {d e} g}\right )}{\sqrt {d e} g^{2}}\right )} + x \log \left (c {\left (d + \frac {e}{{\left (g x + f\right )}^{2}}\right )}^{q}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.52, size = 163, normalized size = 2.76 \[ x\,\ln \left (c\,{\left (d+\frac {e}{{\left (f+g\,x\right )}^2}\right )}^q\right )-\frac {2\,f\,q\,\ln \left (f+g\,x\right )}{g}+\frac {\ln \left (e\,\sqrt {-d\,e}-3\,d\,f^2\,\sqrt {-d\,e}+4\,d\,e\,f+d\,e\,g\,x-3\,d\,f\,g\,x\,\sqrt {-d\,e}\right )\,\left (q\,\sqrt {-d\,e}+d\,f\,q\right )}{d\,g}-\frac {\ln \left (3\,d\,f^2\,\sqrt {-d\,e}-e\,\sqrt {-d\,e}+4\,d\,e\,f+d\,e\,g\,x+3\,d\,f\,g\,x\,\sqrt {-d\,e}\right )\,\left (q\,\sqrt {-d\,e}-d\,f\,q\right )}{d\,g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________